package com.example.sams.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.example.sams.domain.enums.CourseStatus;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课程表
 * </p>
 *
 * @author jinghong
 * @since 2025-11-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("courses")
public class Courses implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 课程名称
     */
    private String name;

    /**
     * 教师ID，关联 teachers.id
     */
    private String teacherId;

    /**
     * 学分
     */
    private Integer credit;

    /**
     * 最大容量
     */
    private Integer capacity;

    /**
     * 已选人数
     */
    private Integer enrolledCount;

    /**
     * 审核状态
     */
    private CourseStatus status;

    /**
     * 课程描述
     */
    private String description;

    /**
     * 申请日期
     */
    private LocalDate applyDate;

    private LocalDateTime createdAt;

    private LocalDateTime updatedAt;


}
